package kr.hkit.androidcomplete01.ch06;

import android.app.Activity;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.widget.LinearLayout;
import android.widget.TextView;

public class Inflation extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		
		LinearLayout layout = new LinearLayout(this);
		
		layout.setOrientation(LinearLayout.VERTICAL);
		
		TextView tv = new TextView(this);
		tv.setText("TextView");
		tv.setTextSize(20);
		tv.setGravity(Gravity.CENTER);
		tv.setTextColor(Color.RED);
		
		layout.addView(tv);
		
		setContentView(layout);
	}
}
